Skip to content

Add Polygon mainnet deployment support to w3gpt SDK - #1

Merged
markeljan merged 1 commit into
mainfrom
feat/polygon-mainnet-sdk
Aug 24, 2026
Merged

markeljan merged 1 commit into
mainfrom
feat/polygon-mainnet-sdk

Conversation

@markeljan

Copy link
Copy Markdown
Member

Summary

  • add a typed deployContract flow for Polygon mainnet (137) and Polygon Amoy (80002)
  • preserve chat context for generate, review, explicit confirmation, and deployment follow-ups
  • document the mainnet and Amoy flows in the package and SDK docs app
  • repair package publishing with explicit exports, a prepack build, and working Changesets commands
  • add Bun tests plus CI build, test, and package-content checks

Why packaging is included

The live w3gpt@0.1.1 tarball contains only README.md and package.json; its referenced dist entrypoints are absent. The new prepack build prevents a repeat and the verified artifact contains CJS, ESM, and declaration files.

Verification

  • bun install --frozen-lockfile
  • bun run check
  • bun run tsc
  • bun run test (4 passing)
  • bun run build (SDK plus both Next.js apps)
  • npm pack --dry-run --json (6 expected package files)
  • clean temporary consumer imported the packed artifact through both CommonJS and ESM

Live smoke

The local SDK reached production /api/skill, received the required Polygon Amoy confirmation prompt, continued on the same chatId, and invoked the deployment tool. The transaction was not broadcast because the production Amoy RPC returned Monthly capacity limit exceeded at eth_getTransactionCount. This is an external production RPC dependency, not an SDK routing failure. No redundant paid mainnet transaction was sent.

Release follow-up

After merge, Changesets should open the 0.1.2 version PR. Merge that PR with a valid NPM_TOKEN available to Actions to publish the repaired artifact. Repository visibility is currently private and must be changed separately before claiming a public GitHub SDK deliverable.

@markeljan
markeljan merged commit 5f49e03 into main Aug 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant